package com.gitee.huanminabc.utils_tools.security.dal.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gitee.huanminabc.utils_tools.security.dal.dao.RoleDaoService;
import com.gitee.huanminabc.utils_tools.security.dal.mapper.RoleMapper;
import com.gitee.huanminabc.utils_tools.security.entity.RoleEntity;
import com.gitee.huanminabc.dynamicdb.aop.DBSwitch;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DBSwitch("resource")
public class  RoleDaoServiceImpl extends ServiceImpl<RoleMapper, RoleEntity> implements RoleDaoService {
    @Override
    public boolean save(RoleEntity entity) {
        return super.save(entity);
    }

    @Override
    public List<RoleEntity> getRoles(String url) {
        return this.baseMapper.getRoles(url);
    }
}
